package com.tuda.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tuda.common.annotation.Excel;
import com.tuda.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 小程序用户对象 tuda_applet_user
 * 
 * @author tuda
 * @date 2023-07-13
 */
public class TudaAppletUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String nickName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String phone;

    private BigDecimal percentage;

    private Integer userType;

    private String deptName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String password;

    /** 微信open_id */
    @Excel(name = "微信open_id")
    private String wxOpenId;

    /** 微信unionId */
    @Excel(name = "微信unionId")
    private String wxUnionId;

    /** 0 正常，1 禁用 */
    @Excel(name = "0 正常，1 禁用")
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setWxOpenId(String wxOpenId) 
    {
        this.wxOpenId = wxOpenId;
    }

    public String getWxOpenId() 
    {
        return wxOpenId;
    }
    public void setWxUnionId(String wxUnionId) 
    {
        this.wxUnionId = wxUnionId;
    }

    public String getWxUnionId() 
    {
        return wxUnionId;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public BigDecimal getPercentage() {
        return percentage;
    }

    public void setPercentage(BigDecimal percentage) {
        this.percentage = percentage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nickName", getNickName())
            .append("phone", getPhone())
            .append("userType", getUserType())
            .append("percentage", getPercentage())
            .append("deptName", getDeptName())
            .append("password", getPassword())
            .append("wxOpenId", getWxOpenId())
            .append("wxUnionId", getWxUnionId())
            .append("isDelete", getIsDelete())
            .append("createTime", getCreateTime())
            .toString();
    }
}
